<%@ Page Language="c#" masterpagefile="~/masterpage.master" Inherits="Microsoft.Samples.SqlServer.OrderList" CodeFile="OrderList.aspx.cs" enablesessionstate="True"%>
<%@ Register TagPrefix="AdventureWorks" TagName="AccountSettings" Src="_AccountSettings.ascx" %>

<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="server">
<!-- =====================================================================

  File:      OrderList.aspx for Adventure Works Cycles Storefront Sample
  Summary:   Lists a brief summary of all orders for the authenticated user
  Date:	     June 16, 2003

=====================================================================

  This file is part of the Microsoft SQL Server Code Samples.
  Copyright (C) Microsoft Corporation.  All rights reserved.

This source code is intended only as a supplement to Microsoft
Development Tools and/or on-line documentation.  See these other
materials for detailed information regarding Microsoft code samples.

THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

======================================================= -->

<table cellspacing="0" cellpadding="0" width="100%" border="0">
	<tr>
		<td class="ContentHead">
			<img align="left" height="32" width="60" src="images/1x1.gif">Account History
			<br>
		</td>
	</tr>
</table>
<img align="left" height="4" width="110" src="images/1x1.gif"> <font color="red">
	<asp:Label id="MyError" cssclass="ErrorText" runat="Server" />
</font>
<br>
<img align="left" height="15" width="84" src="images/1x1.gif" border="0">
<!-- height="100%" -->
<table cellspacing="0" cellpadding="0" width="550" border="0">
	<tr valign="top">
		<td width="100%">
			<asp:DataGrid id="MyList" width="90%" BorderColor="black" GridLines="Vertical" cellpadding="4" cellspacing="0" Font-Names="Verdana" Font-Size="8pt" ShowFooter="true" HeaderStyle-CssClass="CartListHead" FooterStyle-CssClass="cartlistfooter" ItemStyle-CssClass="CartListItem" AlternatingItemStyle-CssClass="CartListItemAlt" AutoGenerateColumns="false" runat="server">
				<Columns>
					<asp:BoundColumn HeaderText="Order ID" DataField="SalesOrderID" />
					<asp:BoundColumn HeaderText="Order Date" DataField="OrderDate" DataFormatString="{0:d}" />
					<asp:BoundColumn HeaderText="Order Total" DataField="OrderTotal" />
					<asp:BoundColumn HeaderText="Ship Date" DataField="ShipDate" DataFormatString="{0:d}" />
					<asp:BoundColumn HeaderText="Status" DataField="StatusMessage" />
					<asp:HyperLinkColumn HeaderText="Show Details" Text="Show Details" DataNavigateUrlField="SalesOrderID" DataNavigateUrlFormatString="orderdetails.aspx?OrderID={0}" />
				</Columns>
			</asp:DataGrid>
		</td>
	</tr>
</table>
<br />
<br />
<table cellspacing="0" cellpadding="0" width="100%" border="0">
	<tr>
	    <td>
	    <img align="left" height="32" width="20" src="images/1x1.gif">
	    <AdventureWorks:AccountSettings id="SettingsControl" IsNewAccount="false" runat="Server" />
		<br>
		<br>
	    <img align="left" height="32" width="20" src="images/1x1.gif">		
		<asp:ImageButton id="UpdateButton" ImageUrl="images/submit.gif" runat="server" onclick="UpdateButton_Click" />
		<br>
		</td>
	</tr>
</table>
</asp:content>
